package com.headwind.logistics.operation.controller;

import com.headwind.logistics.common.util.LayuiUtil;
import com.headwind.logistics.operation.dto.RechargeCustomerDto;
import com.headwind.logistics.operation.service.inter.RechargeRecordBizInter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 周鑫
 * @Date 2020/7/22 16:40
 * @Version 1.0
 * @DESCRIPTION 填写类作用描述
 */
@Controller
public class RechargeRecordController {

    @Resource
    RechargeRecordBizInter rechargeRecordBizInter;


    @GetMapping("/admin/recharge/querallto")
    @ResponseBody
    public LayuiUtil querAlltoController(Integer page,Integer limit){
        List<RechargeCustomerDto> rechargeCustomerDto = rechargeRecordBizInter.querAlltoBizInter(page,limit);
         return LayuiUtil.data(rechargeRecordBizInter.querAlltoBizInter(null,null).size(),rechargeCustomerDto);
    }
}
